import java.util.*;
import java.sql.Date;
class WashMachine{
        public String brand;
        public String type;
        public String Weight;
        public String length;
        public String high;
        public String color;
        public void WashCloths(){
            System.out.println("洗衣服");
        }
        public void dryClothes(){
            System.out.println("脱水");
        }
    }
     class Dog {
        public String name;
        public String color;

        public Dog(){
            System.out.println("这是一个不带参数的构造方法");
        }
        public void barks(){
            System.out.println(name+"汪汪汪");
        }
        public void wag(){
            System.out.println(name+"摇尾巴~~~");
        }
    }

      class Student {
         public String name;
         public String gender;
         public short age;
         public double score;

         public void DoClass() {
             System.out.println(name + "正在做作业");
         }

         public void DoHomework() {
             System.out.println(name + "正在做作业");
         }

         public void Exam() {
             System.out.println(name + "考试成绩为" + score);
         }
     }

     class Demo{
        public int a;
        protected char b;
        private double c;
        String d;
     }
         public class TextDemo1 {
             public static void main(String[] args) {
                 int[] arrays = {1,2,3,4,5};
                 System.out.println(Arrays.toString(arrays));
                 java.util.Date date = new java.util.Date();
             }
             public static void main5(String[] args) {
                 java.util.Date date =new java.util.Date();
                 //得到一个毫秒级别的时间戳；
                 System.out.println(date.getTime());
             }
             public static void main4(String[] args) {
                 int[] arrays = {1,2,3};
                 System.out.println(Arrays.toString(arrays));
             }
             public static void main4(String[] args) {
                 Date date = new Date();
                 System.out.println(date);
             }

             public static void main2(String[] args) {
                 Student student1 = new Student();
                 student1.name = "老八";
                 student1.age = 30;
                 student1.score = 99.9;
                 student1.DoClass();
                 student1.Exam();
                 student1.DoHomework();
             }
             public static void main1(String[] args) {
                 Dog dog1 = new Dog();
                 Dog dog2 = new Dog();
                 //类名 对象名 = new 类名();
             }
         }

